package com.yonyou.gmmc.service.questionnaire.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TmQuestionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TmQuestionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andQtnIdIsNull() {
            addCriterion("QTN_ID is null");
            return (Criteria) this;
        }

        public Criteria andQtnIdIsNotNull() {
            addCriterion("QTN_ID is not null");
            return (Criteria) this;
        }

        public Criteria andQtnIdEqualTo(Integer value) {
            addCriterion("QTN_ID =", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdNotEqualTo(Integer value) {
            addCriterion("QTN_ID <>", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdGreaterThan(Integer value) {
            addCriterion("QTN_ID >", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("QTN_ID >=", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdLessThan(Integer value) {
            addCriterion("QTN_ID <", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdLessThanOrEqualTo(Integer value) {
            addCriterion("QTN_ID <=", value, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdIn(List<Integer> values) {
            addCriterion("QTN_ID in", values, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdNotIn(List<Integer> values) {
            addCriterion("QTN_ID not in", values, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdBetween(Integer value1, Integer value2) {
            addCriterion("QTN_ID between", value1, value2, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtnIdNotBetween(Integer value1, Integer value2) {
            addCriterion("QTN_ID not between", value1, value2, "qtnId");
            return (Criteria) this;
        }

        public Criteria andQtIdIsNull() {
            addCriterion("QT_ID is null");
            return (Criteria) this;
        }

        public Criteria andQtIdIsNotNull() {
            addCriterion("QT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andQtIdEqualTo(Short value) {
            addCriterion("QT_ID =", value, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdNotEqualTo(Short value) {
            addCriterion("QT_ID <>", value, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdGreaterThan(Short value) {
            addCriterion("QT_ID >", value, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdGreaterThanOrEqualTo(Short value) {
            addCriterion("QT_ID >=", value, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdLessThan(Short value) {
            addCriterion("QT_ID <", value, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdLessThanOrEqualTo(Short value) {
            addCriterion("QT_ID <=", value, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdIn(List<Short> values) {
            addCriterion("QT_ID in", values, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdNotIn(List<Short> values) {
            addCriterion("QT_ID not in", values, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdBetween(Short value1, Short value2) {
            addCriterion("QT_ID between", value1, value2, "qtId");
            return (Criteria) this;
        }

        public Criteria andQtIdNotBetween(Short value1, Short value2) {
            addCriterion("QT_ID not between", value1, value2, "qtId");
            return (Criteria) this;
        }

        public Criteria andQneIdIsNull() {
            addCriterion("QNE_ID is null");
            return (Criteria) this;
        }

        public Criteria andQneIdIsNotNull() {
            addCriterion("QNE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andQneIdEqualTo(Integer value) {
            addCriterion("QNE_ID =", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdNotEqualTo(Integer value) {
            addCriterion("QNE_ID <>", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdGreaterThan(Integer value) {
            addCriterion("QNE_ID >", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("QNE_ID >=", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdLessThan(Integer value) {
            addCriterion("QNE_ID <", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdLessThanOrEqualTo(Integer value) {
            addCriterion("QNE_ID <=", value, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdIn(List<Integer> values) {
            addCriterion("QNE_ID in", values, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdNotIn(List<Integer> values) {
            addCriterion("QNE_ID not in", values, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdBetween(Integer value1, Integer value2) {
            addCriterion("QNE_ID between", value1, value2, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneIdNotBetween(Integer value1, Integer value2) {
            addCriterion("QNE_ID not between", value1, value2, "qneId");
            return (Criteria) this;
        }

        public Criteria andQneVersionIsNull() {
            addCriterion("QNE_VERSION is null");
            return (Criteria) this;
        }

        public Criteria andQneVersionIsNotNull() {
            addCriterion("QNE_VERSION is not null");
            return (Criteria) this;
        }

        public Criteria andQneVersionEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION =", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionNotEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION <>", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionGreaterThan(BigDecimal value) {
            addCriterion("QNE_VERSION >", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION >=", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionLessThan(BigDecimal value) {
            addCriterion("QNE_VERSION <", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionLessThanOrEqualTo(BigDecimal value) {
            addCriterion("QNE_VERSION <=", value, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionIn(List<BigDecimal> values) {
            addCriterion("QNE_VERSION in", values, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionNotIn(List<BigDecimal> values) {
            addCriterion("QNE_VERSION not in", values, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QNE_VERSION between", value1, value2, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQneVersionNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QNE_VERSION not between", value1, value2, "qneVersion");
            return (Criteria) this;
        }

        public Criteria andQtnTitleIsNull() {
            addCriterion("QTN_TITLE is null");
            return (Criteria) this;
        }

        public Criteria andQtnTitleIsNotNull() {
            addCriterion("QTN_TITLE is not null");
            return (Criteria) this;
        }

        public Criteria andQtnTitleEqualTo(String value) {
            addCriterion("QTN_TITLE =", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleNotEqualTo(String value) {
            addCriterion("QTN_TITLE <>", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleGreaterThan(String value) {
            addCriterion("QTN_TITLE >", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleGreaterThanOrEqualTo(String value) {
            addCriterion("QTN_TITLE >=", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleLessThan(String value) {
            addCriterion("QTN_TITLE <", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleLessThanOrEqualTo(String value) {
            addCriterion("QTN_TITLE <=", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleLike(String value) {
            addCriterion("QTN_TITLE like", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleNotLike(String value) {
            addCriterion("QTN_TITLE not like", value, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleIn(List<String> values) {
            addCriterion("QTN_TITLE in", values, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleNotIn(List<String> values) {
            addCriterion("QTN_TITLE not in", values, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleBetween(String value1, String value2) {
            addCriterion("QTN_TITLE between", value1, value2, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andQtnTitleNotBetween(String value1, String value2) {
            addCriterion("QTN_TITLE not between", value1, value2, "qtnTitle");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("REMARK like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("REMARK not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("REMARK in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andAnswerIsNull() {
            addCriterion("ANSWER is null");
            return (Criteria) this;
        }

        public Criteria andAnswerIsNotNull() {
            addCriterion("ANSWER is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerEqualTo(Short value) {
            addCriterion("ANSWER =", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotEqualTo(Short value) {
            addCriterion("ANSWER <>", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerGreaterThan(Short value) {
            addCriterion("ANSWER >", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerGreaterThanOrEqualTo(Short value) {
            addCriterion("ANSWER >=", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLessThan(Short value) {
            addCriterion("ANSWER <", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLessThanOrEqualTo(Short value) {
            addCriterion("ANSWER <=", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerIn(List<Short> values) {
            addCriterion("ANSWER in", values, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotIn(List<Short> values) {
            addCriterion("ANSWER not in", values, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerBetween(Short value1, Short value2) {
            addCriterion("ANSWER between", value1, value2, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotBetween(Short value1, Short value2) {
            addCriterion("ANSWER not between", value1, value2, "answer");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Short value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Short value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Short value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Short value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Short value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Short> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Short> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Short value1, Short value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Short value1, Short value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andQtnNoIsNull() {
            addCriterion("QTN_NO is null");
            return (Criteria) this;
        }

        public Criteria andQtnNoIsNotNull() {
            addCriterion("QTN_NO is not null");
            return (Criteria) this;
        }

        public Criteria andQtnNoEqualTo(Integer value) {
            addCriterion("QTN_NO =", value, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoNotEqualTo(Integer value) {
            addCriterion("QTN_NO <>", value, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoGreaterThan(Integer value) {
            addCriterion("QTN_NO >", value, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("QTN_NO >=", value, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoLessThan(Integer value) {
            addCriterion("QTN_NO <", value, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoLessThanOrEqualTo(Integer value) {
            addCriterion("QTN_NO <=", value, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoIn(List<Integer> values) {
            addCriterion("QTN_NO in", values, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoNotIn(List<Integer> values) {
            addCriterion("QTN_NO not in", values, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoBetween(Integer value1, Integer value2) {
            addCriterion("QTN_NO between", value1, value2, "qtnNo");
            return (Criteria) this;
        }

        public Criteria andQtnNoNotBetween(Integer value1, Integer value2) {
            addCriterion("QTN_NO not between", value1, value2, "qtnNo");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}